package com.topscore.uke.mvp.contractors;

import com.topscore.uke.entities.CouponInfo;
import com.topscore.uke.mvp.model.BaseHttpListener;
import com.topscore.uke.mvp.views.BaseView;
import com.topscore.uke.network.BaseResponse;
import com.topscore.uke.network.retrofit.ApiService;
import com.topscore.uke.network.retrofit.NetClient;

import java.util.List;

/**
 * Created by 71468 on 2018/3/28.
 */

public interface GetCouponsInfoContractor {
    interface Model {
        ApiService mService = NetClient.getInstance().net().create(ApiService.class);
        void getCoupons(String loginName, String status);
    }

    interface View extends BaseView {
        void onGetCouponDataSuccess(List<CouponInfo> data);
    }

    interface Presenter {
        void getCoupons(String status);
    }

    interface CallBack extends BaseHttpListener {
        void onGetDataSuccess(BaseResponse<List<CouponInfo>> response);
    }
}
